#!/bin/bash

#grep spread1 tt-2014-03-24.lst |grep HMIN |sed 's/,,/,/g' |sed 's/ spread1//g' >hmin-20140324.lst

strtoday=`date +%Y-%m-%d`

for i in `seq 100`;
do
  grep spread1 tt-$strtoday.lst |grep ATHM |sed 's/,,/,/g' |sed 's/ spread1//g' >ATHM-$strtoday.lst
  grep spread1 tt-$strtoday.lst |grep HMIN |sed 's/,,/,/g' |sed 's/ spread1//g' >HMIN-$strtoday.lst
  #echo "grep spread1 tt-$strtoday.lst |grep ATHM |sed 's/,,/,/g' |sed 's/ spread1//g' >ATHM-$strtoday.lst"
  sleep 300;
done

